<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>opennars: aruntime/src/main/java/nars/entity/Item.java Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">opennars
   &#160;<span id="projectnumber">1.5.5</span>
   </div>
   <div id="projectbrief">1.5-ish</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../namespaces.html"><span>Packages</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d9/de0/Item_8java_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Item.java</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../d9/de0/Item_8java.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Item.java</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2008  Pei Wang</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This file is part of Open-NARS.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * Open-NARS is free software; you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * the Free Software Foundation, either version 2 of the License, or</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * (at your option) any later version.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * Open-NARS is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * GNU General Public License for more details.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * along with Open-NARS.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="keyword">package </span>nars.entity;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">import</span> <a class="code" href="../../d7/d81/namespacenars.html">nars</a>.data.ItemStruct;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item.html">   31</a></span>&#160;<span class="keyword">public</span> <span class="keyword">abstract</span> <span class="keyword">class </span><a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item.html">Item</a> <span class="keyword">implements</span> ItemStruct{</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">   34</a></span>&#160;    <span class="keyword">protected</span> String <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a5c9d56b016786f871e1777c7056c74d9.html#a5c9d56b016786f871e1777c7056c74d9">   36</a></span>&#160;    <span class="keyword">protected</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a5c9d56b016786f871e1777c7056c74d9.html#a5c9d56b016786f871e1777c7056c74d9">budget</a>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_afac49815ed22d197f758a43982e49343.html#afac49815ed22d197f758a43982e49343">   41</a></span>&#160;    <span class="keyword">protected</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_afac49815ed22d197f758a43982e49343.html#afac49815ed22d197f758a43982e49343">Item</a>() {}</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a9aed5088d8a3402d78ea57d1916c3fcb.html#a9aed5088d8a3402d78ea57d1916c3fcb">   47</a></span>&#160;    <span class="keyword">protected</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a9aed5088d8a3402d78ea57d1916c3fcb.html#a9aed5088d8a3402d78ea57d1916c3fcb">Item</a>(String key) {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        this.key = <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        this.budget = <span class="keyword">new</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a>();</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;     }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_af148e036a6ad3103e25e5d5ef1b42357.html#af148e036a6ad3103e25e5d5ef1b42357">   57</a></span>&#160;    <span class="keyword">protected</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_af148e036a6ad3103e25e5d5ef1b42357.html#af148e036a6ad3103e25e5d5ef1b42357">Item</a>(String key, <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> budget) {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        this.key = <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a>;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        this.budget = <span class="keyword">new</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a>(budget);  <span class="comment">// clone, not assignment</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    }</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a0881b62c196f33cd8df3c2f0f3986a65.html#a0881b62c196f33cd8df3c2f0f3986a65">   66</a></span>&#160;    <span class="keyword">protected</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a0881b62c196f33cd8df3c2f0f3986a65.html#a0881b62c196f33cd8df3c2f0f3986a65">setBudget</a>(<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> budget) {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        this.budget = <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a5c9d56b016786f871e1777c7056c74d9.html#a5c9d56b016786f871e1777c7056c74d9">budget</a>;</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    }</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_ab5c9fbb171f325844966b496010acf60.html#ab5c9fbb171f325844966b496010acf60">   74</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_ab5c9fbb171f325844966b496010acf60.html#ab5c9fbb171f325844966b496010acf60">getKey</a>() {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">   82</a></span>&#160;    <span class="keyword">public</span> <a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">BudgetValue</a> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">getBudget</a>() {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a5c9d56b016786f871e1777c7056c74d9.html#a5c9d56b016786f871e1777c7056c74d9">budget</a>;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    }</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a97b35888ceaad90e7a428701051c51d7.html#a97b35888ceaad90e7a428701051c51d7">   90</a></span>&#160;     <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a97b35888ceaad90e7a428701051c51d7.html#a97b35888ceaad90e7a428701051c51d7">getPriority</a>() {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keywordflow">return</span> budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a1e7b6826531f03f792f3516ce0e97ac3.html#a1e7b6826531f03f792f3516ce0e97ac3">getPriority</a>();</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    }</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_aeda0763b2c90f6fef3f23b9b4d3d68f0.html#aeda0763b2c90f6fef3f23b9b4d3d68f0">   98</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_aeda0763b2c90f6fef3f23b9b4d3d68f0.html#aeda0763b2c90f6fef3f23b9b4d3d68f0">setPriority</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac2cb3449a15125e5f0e4165aeee0befb.html#ac2cb3449a15125e5f0e4165aeee0befb">setPriority</a>(v);</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    }</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a9324e448bf1bc9f45c3b8e189450a1bf.html#a9324e448bf1bc9f45c3b8e189450a1bf">  106</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a9324e448bf1bc9f45c3b8e189450a1bf.html#a9324e448bf1bc9f45c3b8e189450a1bf">incPriority</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a088e64163126211239b6afd25a9cdca3.html#a088e64163126211239b6afd25a9cdca3">incPriority</a>(v);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_ac83323d74841f32ec33ebb1c374d85cc.html#ac83323d74841f32ec33ebb1c374d85cc">  114</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_ac83323d74841f32ec33ebb1c374d85cc.html#ac83323d74841f32ec33ebb1c374d85cc">decPriority</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214.html#a27f92b156f0a25520e38a489ec6fc214">decPriority</a>(v);</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    }</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_adbb21c1891722e30c1d6cfaf5fee18ee.html#adbb21c1891722e30c1d6cfaf5fee18ee">  122</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_adbb21c1891722e30c1d6cfaf5fee18ee.html#adbb21c1891722e30c1d6cfaf5fee18ee">getDurability</a>() {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        <span class="keywordflow">return</span> budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab0e0dc2172d3fab6390670acb68da1a6.html#ab0e0dc2172d3fab6390670acb68da1a6">getDurability</a>();</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    }</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a0f27e5a39dc50b5f108732f59199db22.html#a0f27e5a39dc50b5f108732f59199db22">  130</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a0f27e5a39dc50b5f108732f59199db22.html#a0f27e5a39dc50b5f108732f59199db22">setDurability</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab72bce41fd8a1512fc8baa07ed93fc1b.html#ab72bce41fd8a1512fc8baa07ed93fc1b">setDurability</a>(v);</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_ab69f98f7b6569955a70dc6d84ba4b334.html#ab69f98f7b6569955a70dc6d84ba4b334">  138</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_ab69f98f7b6569955a70dc6d84ba4b334.html#ab69f98f7b6569955a70dc6d84ba4b334">incDurability</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a0ea64f8c378c0573d61182538137e21c.html#a0ea64f8c378c0573d61182538137e21c">incDurability</a>(v);</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    }</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a4761275e8e265c669dc539af3e15eef8.html#a4761275e8e265c669dc539af3e15eef8">  146</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a4761275e8e265c669dc539af3e15eef8.html#a4761275e8e265c669dc539af3e15eef8">decDurability</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af94675e7515bd0efd94b5ee787eebc4a.html#af94675e7515bd0efd94b5ee787eebc4a">decDurability</a>(v);</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    }</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_af79c85ab2fe1dd641821a7503028ed6e.html#af79c85ab2fe1dd641821a7503028ed6e">  154</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_af79c85ab2fe1dd641821a7503028ed6e.html#af79c85ab2fe1dd641821a7503028ed6e">getQuality</a>() {</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <span class="keywordflow">return</span> budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae48fee1252f685c6ce2033bb855d13e1.html#ae48fee1252f685c6ce2033bb855d13e1">getQuality</a>();</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a686c257308a15eba9458a438cc60227a.html#a686c257308a15eba9458a438cc60227a">  162</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a686c257308a15eba9458a438cc60227a.html#a686c257308a15eba9458a438cc60227a">setQuality</a>(<span class="keywordtype">float</span> v) {</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab134287bfbdfe703501697c5f9eac50b.html#ab134287bfbdfe703501697c5f9eac50b">setQuality</a>(v);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    }</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_af5627be72cf674ebd5d25427d84a66a7.html#af5627be72cf674ebd5d25427d84a66a7">  170</a></span>&#160;    <span class="keyword">public</span> <span class="keywordtype">void</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_af5627be72cf674ebd5d25427d84a66a7.html#af5627be72cf674ebd5d25427d84a66a7">merge</a>(<a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item.html">Item</a> that) {</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4fdeae08389c60a4d89bc0b85a92848f.html#a4fdeae08389c60a4d89bc0b85a92848f">merge</a>(that.<a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">getBudget</a>());</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    @Override</div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_aa09cfb045062f89cbea45a6975e6a2f2.html#aa09cfb045062f89cbea45a6975e6a2f2">  179</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_aa09cfb045062f89cbea45a6975e6a2f2.html#aa09cfb045062f89cbea45a6975e6a2f2">toString</a>() {</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        <span class="keywordflow">return</span> budget + <span class="stringliteral">&quot; &quot;</span> + <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a> ;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    }</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;</div>
<div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_a7c18bbc91147504a285041d636284acd.html#a7c18bbc91147504a285041d636284acd">  187</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a7c18bbc91147504a285041d636284acd.html#a7c18bbc91147504a285041d636284acd">toStringBrief</a>() {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <span class="keywordflow">return</span> budget.<a class="code" href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_aff75d0d4fed143961e843d2959687fb0.html#aff75d0d4fed143961e843d2959687fb0">toStringBrief</a>() + <span class="stringliteral">&quot; &quot;</span> + <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">key</a> ;</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    }</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    </div>
<div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="../../d1/dd1/classnars_1_1entity_1_1Item_af06f82dd62f5ddf754886b15e1d76dbc.html#af06f82dd62f5ddf754886b15e1d76dbc">  191</a></span>&#160;    <span class="keyword">public</span> String <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_af06f82dd62f5ddf754886b15e1d76dbc.html#af06f82dd62f5ddf754886b15e1d76dbc">toStringLong</a>() {</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="../../d1/dd1/classnars_1_1entity_1_1Item_aa09cfb045062f89cbea45a6975e6a2f2.html#aa09cfb045062f89cbea45a6975e6a2f2">toString</a>();</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    }</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;}</div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55_html_a54fc0a370b847dd77c0a698c765e6e55"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a54fc0a370b847dd77c0a698c765e6e55.html#a54fc0a370b847dd77c0a698c765e6e55">nars.entity.Item.getBudget</a></div><div class="ttdeci">BudgetValue getBudget()</div><div class="ttdoc">Get BudgetValue. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00082">Item.java:82</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ab134287bfbdfe703501697c5f9eac50b_html_ab134287bfbdfe703501697c5f9eac50b"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab134287bfbdfe703501697c5f9eac50b.html#ab134287bfbdfe703501697c5f9eac50b">nars.entity.BudgetValue.setQuality</a></div><div class="ttdeci">void setQuality(float v)</div><div class="ttdoc">Change quality value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00156">BudgetValue.java:156</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_aeda0763b2c90f6fef3f23b9b4d3d68f0_html_aeda0763b2c90f6fef3f23b9b4d3d68f0"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_aeda0763b2c90f6fef3f23b9b4d3d68f0.html#aeda0763b2c90f6fef3f23b9b4d3d68f0">nars.entity.Item.setPriority</a></div><div class="ttdeci">void setPriority(float v)</div><div class="ttdoc">Set priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00098">Item.java:98</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ae48fee1252f685c6ce2033bb855d13e1_html_ae48fee1252f685c6ce2033bb855d13e1"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ae48fee1252f685c6ce2033bb855d13e1.html#ae48fee1252f685c6ce2033bb855d13e1">nars.entity.BudgetValue.getQuality</a></div><div class="ttdeci">float getQuality()</div><div class="ttdoc">Get quality value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00148">BudgetValue.java:148</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_aa09cfb045062f89cbea45a6975e6a2f2_html_aa09cfb045062f89cbea45a6975e6a2f2"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_aa09cfb045062f89cbea45a6975e6a2f2.html#aa09cfb045062f89cbea45a6975e6a2f2">nars.entity.Item.toString</a></div><div class="ttdeci">String toString()</div><div class="ttdoc">Return a String representation of the Item. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00179">Item.java:179</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_af79c85ab2fe1dd641821a7503028ed6e_html_af79c85ab2fe1dd641821a7503028ed6e"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_af79c85ab2fe1dd641821a7503028ed6e.html#af79c85ab2fe1dd641821a7503028ed6e">nars.entity.Item.getQuality</a></div><div class="ttdeci">float getQuality()</div><div class="ttdoc">Get quality value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00154">Item.java:154</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_ab69f98f7b6569955a70dc6d84ba4b334_html_ab69f98f7b6569955a70dc6d84ba4b334"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_ab69f98f7b6569955a70dc6d84ba4b334.html#ab69f98f7b6569955a70dc6d84ba4b334">nars.entity.Item.incDurability</a></div><div class="ttdeci">void incDurability(float v)</div><div class="ttdoc">Increase durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00138">Item.java:138</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a088e64163126211239b6afd25a9cdca3_html_a088e64163126211239b6afd25a9cdca3"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a088e64163126211239b6afd25a9cdca3.html#a088e64163126211239b6afd25a9cdca3">nars.entity.BudgetValue.incPriority</a></div><div class="ttdeci">void incPriority(float v)</div><div class="ttdoc">Increase priority value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00100">BudgetValue.java:100</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_html"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item.html">nars.entity.Item</a></div><div class="ttdoc">An item is an object that can be put into a Bag, to participate in the resource competition of the sy...</div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00031">Item.java:31</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_af94675e7515bd0efd94b5ee787eebc4a_html_af94675e7515bd0efd94b5ee787eebc4a"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_af94675e7515bd0efd94b5ee787eebc4a.html#af94675e7515bd0efd94b5ee787eebc4a">nars.entity.BudgetValue.decDurability</a></div><div class="ttdeci">void decDurability(float v)</div><div class="ttdoc">Decrease durability value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00140">BudgetValue.java:140</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a5c9d56b016786f871e1777c7056c74d9_html_a5c9d56b016786f871e1777c7056c74d9"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a5c9d56b016786f871e1777c7056c74d9.html#a5c9d56b016786f871e1777c7056c74d9">nars.entity.Item.budget</a></div><div class="ttdeci">BudgetValue budget</div><div class="ttdoc">The budget of the Item, consisting of 3 numbers. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00036">Item.java:36</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ab72bce41fd8a1512fc8baa07ed93fc1b_html_ab72bce41fd8a1512fc8baa07ed93fc1b"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab72bce41fd8a1512fc8baa07ed93fc1b.html#ab72bce41fd8a1512fc8baa07ed93fc1b">nars.entity.BudgetValue.setDurability</a></div><div class="ttdeci">void setDurability(float v)</div><div class="ttdoc">Change durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00124">BudgetValue.java:124</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a97b35888ceaad90e7a428701051c51d7_html_a97b35888ceaad90e7a428701051c51d7"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a97b35888ceaad90e7a428701051c51d7.html#a97b35888ceaad90e7a428701051c51d7">nars.entity.Item.getPriority</a></div><div class="ttdeci">float getPriority()</div><div class="ttdoc">Get priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00090">Item.java:90</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_aff75d0d4fed143961e843d2959687fb0_html_aff75d0d4fed143961e843d2959687fb0"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_aff75d0d4fed143961e843d2959687fb0.html#aff75d0d4fed143961e843d2959687fb0">nars.entity.BudgetValue.toStringBrief</a></div><div class="ttdeci">String toStringBrief()</div><div class="ttdoc">Briefly display the BudgetValue. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00215">BudgetValue.java:215</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a0881b62c196f33cd8df3c2f0f3986a65_html_a0881b62c196f33cd8df3c2f0f3986a65"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a0881b62c196f33cd8df3c2f0f3986a65.html#a0881b62c196f33cd8df3c2f0f3986a65">nars.entity.Item.setBudget</a></div><div class="ttdeci">void setBudget(BudgetValue budget)</div><div class="ttdoc">Constructor with initial budget. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00066">Item.java:66</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ab0e0dc2172d3fab6390670acb68da1a6_html_ab0e0dc2172d3fab6390670acb68da1a6"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ab0e0dc2172d3fab6390670acb68da1a6.html#ab0e0dc2172d3fab6390670acb68da1a6">nars.entity.BudgetValue.getDurability</a></div><div class="ttdeci">float getDurability()</div><div class="ttdoc">Get durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00116">BudgetValue.java:116</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a0ea64f8c378c0573d61182538137e21c_html_a0ea64f8c378c0573d61182538137e21c"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a0ea64f8c378c0573d61182538137e21c.html#a0ea64f8c378c0573d61182538137e21c">nars.entity.BudgetValue.incDurability</a></div><div class="ttdeci">void incDurability(float v)</div><div class="ttdoc">Increase durability value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00132">BudgetValue.java:132</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_ac83323d74841f32ec33ebb1c374d85cc_html_ac83323d74841f32ec33ebb1c374d85cc"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_ac83323d74841f32ec33ebb1c374d85cc.html#ac83323d74841f32ec33ebb1c374d85cc">nars.entity.Item.decPriority</a></div><div class="ttdeci">void decPriority(float v)</div><div class="ttdoc">Decrease priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00114">Item.java:114</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600_html_a1487af4a10f874c370c913d9ef784600"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a1487af4a10f874c370c913d9ef784600.html#a1487af4a10f874c370c913d9ef784600">nars.entity.Item.key</a></div><div class="ttdeci">String key</div><div class="ttdoc">The key of the Item, unique in a Bag. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00034">Item.java:34</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_ac2cb3449a15125e5f0e4165aeee0befb_html_ac2cb3449a15125e5f0e4165aeee0befb"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_ac2cb3449a15125e5f0e4165aeee0befb.html#ac2cb3449a15125e5f0e4165aeee0befb">nars.entity.BudgetValue.setPriority</a></div><div class="ttdeci">void setPriority(float v)</div><div class="ttdoc">Change priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00092">BudgetValue.java:92</a></div></div>
<div class="ttc" id="namespacenars_html"><div class="ttname"><a href="../../d7/d81/namespacenars.html">nars</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214_html_a27f92b156f0a25520e38a489ec6fc214"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a27f92b156f0a25520e38a489ec6fc214.html#a27f92b156f0a25520e38a489ec6fc214">nars.entity.BudgetValue.decPriority</a></div><div class="ttdeci">void decPriority(float v)</div><div class="ttdoc">Decrease priority value by a percentage of the remaining range. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00108">BudgetValue.java:108</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_adbb21c1891722e30c1d6cfaf5fee18ee_html_adbb21c1891722e30c1d6cfaf5fee18ee"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_adbb21c1891722e30c1d6cfaf5fee18ee.html#adbb21c1891722e30c1d6cfaf5fee18ee">nars.entity.Item.getDurability</a></div><div class="ttdeci">float getDurability()</div><div class="ttdoc">Get durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00122">Item.java:122</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_af5627be72cf674ebd5d25427d84a66a7_html_af5627be72cf674ebd5d25427d84a66a7"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_af5627be72cf674ebd5d25427d84a66a7.html#af5627be72cf674ebd5d25427d84a66a7">nars.entity.Item.merge</a></div><div class="ttdeci">void merge(Item that)</div><div class="ttdoc">Merge with another Item with identical key. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00170">Item.java:170</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a4fdeae08389c60a4d89bc0b85a92848f_html_a4fdeae08389c60a4d89bc0b85a92848f"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a4fdeae08389c60a4d89bc0b85a92848f.html#a4fdeae08389c60a4d89bc0b85a92848f">nars.entity.BudgetValue.merge</a></div><div class="ttdeci">void merge(BudgetStruct that)</div><div class="ttdoc">Merge one BudgetValue into another. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00180">BudgetValue.java:180</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a4761275e8e265c669dc539af3e15eef8_html_a4761275e8e265c669dc539af3e15eef8"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a4761275e8e265c669dc539af3e15eef8.html#a4761275e8e265c669dc539af3e15eef8">nars.entity.Item.decDurability</a></div><div class="ttdeci">void decDurability(float v)</div><div class="ttdoc">Decrease durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00146">Item.java:146</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a686c257308a15eba9458a438cc60227a_html_a686c257308a15eba9458a438cc60227a"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a686c257308a15eba9458a438cc60227a.html#a686c257308a15eba9458a438cc60227a">nars.entity.Item.setQuality</a></div><div class="ttdeci">void setQuality(float v)</div><div class="ttdoc">Set quality value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00162">Item.java:162</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_af06f82dd62f5ddf754886b15e1d76dbc_html_af06f82dd62f5ddf754886b15e1d76dbc"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_af06f82dd62f5ddf754886b15e1d76dbc.html#af06f82dd62f5ddf754886b15e1d76dbc">nars.entity.Item.toStringLong</a></div><div class="ttdeci">String toStringLong()</div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00191">Item.java:191</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_af148e036a6ad3103e25e5d5ef1b42357_html_af148e036a6ad3103e25e5d5ef1b42357"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_af148e036a6ad3103e25e5d5ef1b42357.html#af148e036a6ad3103e25e5d5ef1b42357">nars.entity.Item.Item</a></div><div class="ttdeci">Item(String key, BudgetValue budget)</div><div class="ttdoc">Constructor with initial budget. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00057">Item.java:57</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_afac49815ed22d197f758a43982e49343_html_afac49815ed22d197f758a43982e49343"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_afac49815ed22d197f758a43982e49343.html#afac49815ed22d197f758a43982e49343">nars.entity.Item.Item</a></div><div class="ttdeci">Item()</div><div class="ttdoc">The default constructor. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00041">Item.java:41</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_a1e7b6826531f03f792f3516ce0e97ac3_html_a1e7b6826531f03f792f3516ce0e97ac3"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue_a1e7b6826531f03f792f3516ce0e97ac3.html#a1e7b6826531f03f792f3516ce0e97ac3">nars.entity.BudgetValue.getPriority</a></div><div class="ttdeci">float getPriority()</div><div class="ttdoc">Get priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00084">BudgetValue.java:84</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a9324e448bf1bc9f45c3b8e189450a1bf_html_a9324e448bf1bc9f45c3b8e189450a1bf"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a9324e448bf1bc9f45c3b8e189450a1bf.html#a9324e448bf1bc9f45c3b8e189450a1bf">nars.entity.Item.incPriority</a></div><div class="ttdeci">void incPriority(float v)</div><div class="ttdoc">Increase priority value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00106">Item.java:106</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_ab5c9fbb171f325844966b496010acf60_html_ab5c9fbb171f325844966b496010acf60"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_ab5c9fbb171f325844966b496010acf60.html#ab5c9fbb171f325844966b496010acf60">nars.entity.Item.getKey</a></div><div class="ttdeci">String getKey()</div><div class="ttdoc">Get the current key. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00074">Item.java:74</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a9aed5088d8a3402d78ea57d1916c3fcb_html_a9aed5088d8a3402d78ea57d1916c3fcb"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a9aed5088d8a3402d78ea57d1916c3fcb.html#a9aed5088d8a3402d78ea57d1916c3fcb">nars.entity.Item.Item</a></div><div class="ttdeci">Item(String key)</div><div class="ttdoc">Constructor with default budget. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00047">Item.java:47</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1BudgetValue_html"><div class="ttname"><a href="../../db/d8e/classnars_1_1entity_1_1BudgetValue.html">nars.entity.BudgetValue</a></div><div class="ttdoc">A triple of priority (current), durability (decay), and quality (long-term average). </div><div class="ttdef"><b>Definition:</b> <a href="../../d8/d59/BudgetValue_8java_source.html#l00031">BudgetValue.java:31</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a7c18bbc91147504a285041d636284acd_html_a7c18bbc91147504a285041d636284acd"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a7c18bbc91147504a285041d636284acd.html#a7c18bbc91147504a285041d636284acd">nars.entity.Item.toStringBrief</a></div><div class="ttdeci">String toStringBrief()</div><div class="ttdoc">Return a String representation of the Item after simplification. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00187">Item.java:187</a></div></div>
<div class="ttc" id="classnars_1_1entity_1_1Item_a0f27e5a39dc50b5f108732f59199db22_html_a0f27e5a39dc50b5f108732f59199db22"><div class="ttname"><a href="../../d1/dd1/classnars_1_1entity_1_1Item_a0f27e5a39dc50b5f108732f59199db22.html#a0f27e5a39dc50b5f108732f59199db22">nars.entity.Item.setDurability</a></div><div class="ttdeci">void setDurability(float v)</div><div class="ttdoc">Set durability value. </div><div class="ttdef"><b>Definition:</b> <a href="../../d9/de0/Item_8java_source.html#l00130">Item.java:130</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_ed82ebcd34e530b246c6fd9032262140.html">aruntime</a></li><li class="navelem"><a class="el" href="../../dir_19496ddff8e6c0f2b6654287ecb1a472.html">src</a></li><li class="navelem"><a class="el" href="../../dir_db9c5934f797909f7296c2c2017f7fc9.html">main</a></li><li class="navelem"><a class="el" href="../../dir_6d74390eb6d6287951075e525bcb9bed.html">java</a></li><li class="navelem"><a class="el" href="../../dir_51a24984472456d47100350cd31f9a7c.html">nars</a></li><li class="navelem"><a class="el" href="../../dir_c3c9ea9f52870ae82b0fae20af0d9479.html">entity</a></li><li class="navelem"><a class="el" href="../../d9/de0/Item_8java.html">Item.java</a></li>
    <li class="footer">Generated on Sun Jan 10 2016 18:03:58 for opennars by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.9.1 </li>
  </ul>
</div>
</body>
</html>
